package com.itheima.day14_多线程.Test03;

public class Test03 {
    /*
    【编号2003】某电影院目前正在上映国产大片，共有100张票，而它有3个窗口卖票，
    请设计一个程序模拟该电影院卖票，并保证线程同步，不会出现错误的买票数据。
     */
    public static void main(String[] args) {
        Ticket t = new Ticket();

        Thread t1 = new Thread(t,"一号窗口");

        Thread t2 = new Thread(t,"二号窗口");

        Thread t3 = new Thread(t,"三号窗口");

        t1.start();
        t2.start();
        t3.start();
    }
}
